package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.service.CnzzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @Version: 1.0
 */
@RestController
@RequestMapping("/cnzz")
public class CnzzController {

    @Autowired
    private CnzzService cnzzService;

    @GetMapping("/list")
    public CommonResult selectList(@RequestParam String channel) {
        return CommonResult.success(cnzzService.selectList(channel));
    }

}
